
const state = {
    //子菜单对象的状态
    foodobj:{},
}
const mutations = {
    updatefoodobj (state, payload) {
        state.foodobj = payload.foodobj;
    },
    updatetotalNum (state, payload) {
        state.totalNum = payload.totalNum;
    },
}
const actions = {
    updatefoodobj ({commit}, foodobj) {
        commit({type: 'updatefoodobj', foodobj: foodobj})
    },
    updatetotalNum ({commit}, foodobj) {
        commit({type: 'updatetotalNum', totalNum: totalNum})
    },
}

export default {
    state,
    actions,
    mutations
}
